package dept;

public class RD extends Department{
    private int numsOfProjects;

    public RD() {
        super();
    }

    public RD(String deptName, String managerName, int numsOfEmps, String deptInfo, int numsOfProjects) {
        super(deptName, managerName, numsOfEmps, deptInfo);
        this.numsOfProjects = numsOfProjects;
    }
    public int getNumsOfProjects() {
        return numsOfProjects;
    }

    public void setNumsOfProjects(int numsOfProjects) {
        this.numsOfProjects = numsOfProjects;
    }

    @Override
    public void printIntro() {
        super.printBaseIntro();
        System.out.println("研发项目数："+this.getNumsOfProjects());
    }
}
